package com.erp.erp_servers.CustomerComplaint.imp;

import com.erp.erp_dao.CustomerComplaint.ICustomerComplaintFileDAO;
import com.erp.erp_entitys.CustomerComplaint.CustomerComplaintFileEntity;
import com.erp.erp_servers.CustomerComplaint.ICustomerComplaintFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpCustomerComplaintFileService implements ICustomerComplaintFileService {
    @Autowired
    private ICustomerComplaintFileDAO FileDAO;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return FileDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CustomerComplaintFileEntity record) {
        return FileDAO.insert(record);
    }

    @Override
    public int insertSelective(CustomerComplaintFileEntity record) {
        return FileDAO.insertSelective(record);
    }

    @Override
    public CustomerComplaintFileEntity selectByPrimaryKey(Integer id) {
        return FileDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(CustomerComplaintFileEntity record) {
        return FileDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CustomerComplaintFileEntity record) {
        return FileDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<CustomerComplaintFileEntity> selectFileByCid(Integer cId) {
        return FileDAO.selectFileByCid(cId);
    }
}
